Skip to content

fix: Node 24 compat, SDK v21 support, staticToken fallback#143

Open
writepavel wants to merge 2 commits intonuxtus:mainfrom
resultcrafter:main
Open

fix: Node 24 compat, SDK v21 support, staticToken fallback#143
writepavel wants to merge 2 commits intonuxtus:mainfrom
resultcrafter:main

Conversation

@writepavel
Copy link
Copy Markdown

  • Remove fire-and-forget this.login() from constructor (fixes unhandled rejection)
  • Add staticToken fallback in login() when NUXTUS_DIRECTUS_STATIC_TOKEN is set
  • Normalize getCollections() response for SDK v21 (flat array vs {data:[]})
  • Rewrite generateStaticToken() to register token via PATCH /users/:id API
  • Add StaticTokenClient to Directus type

- Remove fire-and-forget this.login() from constructor (fixes unhandled rejection)
- Add staticToken fallback in login() when NUXTUS_DIRECTUS_STATIC_TOKEN is set
- Normalize getCollections() response for SDK v21 (flat array vs {data:[]})
- Rewrite generateStaticToken() to register token via PATCH /users/:id API
- Add StaticTokenClient to Directus type
@craigharman
Copy link
Copy Markdown
Contributor

Unrequired resultcrafter modifications, please remove.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants